package com.hdit.guimei.service.impl;

import com.hdit.guimei.domain.Seckill_time;
import com.hdit.guimei.mapper.Seckill_timeMapper;
import com.hdit.guimei.service.Seckill_timeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * @author 张宝玉
 * @date 2021/1/20 16:45
 */
@Service
public class Seckill_timeServiceImpl implements Seckill_timeService {
    @Autowired
    public Seckill_timeMapper seckillTimeMapper;
    @Override
    public Seckill_time findseckilltime(int seckill_id) {
        Seckill_time seckillTime = seckillTimeMapper.findseckilltime(seckill_id);
        return seckillTime;
    }

    @Override
    public int deleseckilltime(int seckill_id) {
        int i = seckillTimeMapper.deleseckilltime(seckill_id);
        return i;
    }

    @Override
    public int addseckilltime(Seckill_time seckillTime) {
        int i = seckillTimeMapper.addseckilltime(seckillTime);
        return i;
    }

    @Override
    public int updateseckilltime(Date start_time, Date end_time) {
        int i = seckillTimeMapper.updateseckilltime(start_time, end_time);
        return i;
    }
}
